package org.gthelper.handler;

import org.gthelper.order.Header;


public class HandlerFactory
{
	public static Handler createHandlerImpl(int order)
	{
		switch(order)
		{
		case Header.OD_ASKDIR:
			return new DirGeter();
			
		case Header.OD_ASKFORLOGIN:
			return new PreLogin();
			
		case Header.OD_ASKFORUPLOAD:
			return new PreUpload();
			
		case Header.OD_ASKIMAGE:
			return new PreView();
			
		case Header.OD_ASKREG:
			return new PreReg();
			
		case Header.OD_DELETE:
			return new Delete();
			
		case Header.OD_DOWNLOAD:
			return new Download();
			
		case Header.OD_LOGIN:
			return new Login();
			
		case Header.OD_LOGOUT:
			return new Logout();
			
		case Header.OD_PROCESS:
			return new Process();
			
		case Header.OD_REG:
			return new Reg();
			
		case Header.OD_UPLOAD:
			return new Upload();
			
			
		default :
			return null;
			
		}
	}
}